# Author：lixin

# name = input("name: ")
# age = input("age: ")
# job = input("job: ")
# salary = input("salary: ")

# 字符串的拼接要用”+“来连接
# info = '''----------INFO ''' + name+'''----------
# age:'''+age+'''
# job:'''+job+'''
# salary:'''+salary
#
# print(info)

# 优化字符串拼接：占位符 %s 动态的数据-->变量
# 优点：可以全部都写在一个大的字符串里，省略了繁琐的符号
# 缺点：但是顺序容易乱，导致结果与预期相悖
# info_zhanweifu = '''----------INFO %s----------
# name:%s
# age:%s
# job:%s
# salary:%s''' % (name, name, age, job, salary)
#
# print("info_zhanweifu")

# 进一步优化字符串拼接
# .format() 格式化 字符串
# info_format = '''----------INFO {姓名}----------
# name:{姓名}
# age:{年龄}
# job:{工作}
# salary:{薪水}''' .format(姓名=name, 年龄=age, 工作=job, 薪水=salary)
#
# print("info_format")

# .format 案例
url = "https://www.nfu.edu.cn/"  # 官网的域名
universitydynamics = "gjdt"
url_page = ".htm"
url_pagedetails = "/index"

# for i in range(1, 27):
#     all_url = url+ universitydynamics+ url_pagedetails+ str(i)+ url_page
#     print(all_url)

for i in range(1, 27):
    all_url = "https://www.nfu.edu.cn/{news}/index{page_number}.htm" .format(page_number=str(i), news="gjdt")
    print(all_url)